#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int arr[10] = { 1,2,3,4,5,6,7,8,9,10 };
	int k = 6;
	int i = 0;
	while (i<10)
	{
		if (arr[i] != k)
			i++;
		else break;
	}
	printf("%d", i);
	return 0;
}